package com.link.base.base.purchaseplan.service;


import com.link.base.base.purchaseplan.model.PurchasePlan;
import com.link.core.basic.service.BasicService;
import com.link.core.basic.service.BasicServiceException;

/**
 * 要货计划service
 *
 * @author NingLanhao
 * @date 2018-11-21 12:04
 */
public interface PurchasePlanService extends BasicService<PurchasePlan> {

    /**
     * 更新要货计划头对象状态
     *
     * @author Wei Xuan
     * @param entity 要货计划对象
     * @return void
     * @created 15:25 2018/11/23
     */
    public void updateStatus(PurchasePlan entity) throws BasicServiceException;

    /**
     * 根据经销商ID、期间ID校验是否已存在当前数据
     *
     * @author Wei Xuan
     * @param entity
     * @return 要货计划头对象
     * @created 20:10 2018/11/28
     */
    public PurchasePlan queryRepeatOne(PurchasePlan entity) throws BasicServiceException;

    /**
     * 导入创建要货计划头
     *
     * @author Wei Xuan
     * @param entity
     * @return void
     * @created 20:26 2018/11/28
     */
    public void createPurchasePlan(PurchasePlan entity) throws BasicServiceException;
}
